package mypro1;

public class TestBreak {
    public static void main(String[] args) {

        int total = 0;
        long currentTime = System.currentTimeMillis();

        while (true) {
            total++;
            int i = (int) Math.round(100 * Math.random());
            if (i == 88) {
                break;
            }

            long whileTime = System.currentTimeMillis();
            if (whileTime - currentTime > 10 * 1000) {
                break;
            }

        }
        System.out.println("total用了" + total + "次！");

        System.out.println("**********************");


        for (int a = 100; a <= 150; a++) {
            if (a % 3 == 0) {
                continue;
            }
            System.out.print(a + "\t");
        }
    }
}
